<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\BuyJob */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Buy Jobs', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="buy-job-view">

    <p>
        <?php echo Html::a('参与用户列表', ['buy-job-user/index','BuyJobUserSearch[buyjob_id]'=>$model->id], ['class' => 'btn btn-primary']) ?>
    </p>

    <?php echo DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'good_id',
            'user_num',
            'user_num_real',
            'buy_num',
            'buy_num_real',
            'is_buy_open',
            'is_open',
            'win_user',
            'receipt_time:datetime',
            'share_time_pre:datetime',
            'share_time:datetime',
            'create_time:datetime',
        ],
    ]) ?>

</div>
